Skip to content

fix: ensure camera matrices are current for fog of war positioning#1256

Merged
braedonsaunders merged 1 commit into
mainfrom
claude/fix-fog-of-war-positioning-0VptG
Feb 3, 2026
Merged

fix: ensure camera matrices are current for fog of war positioning#1256
braedonsaunders merged 1 commit into
mainfrom
claude/fix-fog-of-war-positioning-0VptG

Conversation

@braedonsaunders

Copy link
Copy Markdown
Owner
  • Call updateMatrixWorld() and updateProjectionMatrix() before copying camera uniforms to ensure matrices are synchronized with position
  • Use setFromMatrixPosition(matrixWorld) instead of copying camera.position directly, ensuring world position is consistent with world reconstruction

Fixes fog of war visible area shifting ~20% south when switching from low to high graphics (volumetric fog used stale camera matrices). Also fixes jiggling during fast camera movements and zooming (position/matrix mismatch).

https://claude.ai/code/session_01EapnCYk6fojgAW339F4Dfh

- Call updateMatrixWorld() and updateProjectionMatrix() before copying
  camera uniforms to ensure matrices are synchronized with position
- Use setFromMatrixPosition(matrixWorld) instead of copying camera.position
  directly, ensuring world position is consistent with world reconstruction

Fixes fog of war visible area shifting ~20% south when switching from low
to high graphics (volumetric fog used stale camera matrices). Also fixes
jiggling during fast camera movements and zooming (position/matrix mismatch).

https://claude.ai/code/session_01EapnCYk6fojgAW339F4Dfh
@braedonsaunders braedonsaunders merged commit b633c3e into main Feb 3, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants